import axios from "axios";

export const instance = axios.create({
    timeout: 10000 // 10秒超时
});

/**
 * 拦截请求结果过滤掉一层data
 */
instance.interceptors.response.use(res => {
    return res.data;
})